package Day26.java.deom02;

import com.alibaba.fastjson.JSON;

public class Demo05 {
    public static void main(String[] args) {
        // 转换  {"id":"1002","info":"我欲迎风再留住几步","name":"唐诗三百首"}
        Book book = JSON.parseObject("{\"id\":\"1002\",\"info\":\"我欲迎风再留住几步\",\"name\":\"唐诗三百首\"}",Book.class);
        System.out.println(book.getId());
    }
}
